package com.gf.ssjk.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gf.ssjk.mapper.DtxxMapper;
import com.gf.ssjk.model.Dtxx;
import com.gf.ssjk.service.DtxxService;

/**
 * 实时监控
 * @author Administrator
 *
 */
@Service
@Transactional
public class DtxxServiceImpl implements DtxxService{
	
	@Autowired
	private DtxxMapper dtxxMapper;

	/**
	 * 根据id查询电梯信息
	 */
	@Override
	public Dtxx getDtxxById(String dtxxId) {
		return dtxxMapper.getDtxxById(dtxxId);
	}
	
	/**
	 * 根据编号查询电梯信息
	 */
	@Override
	public List<Dtxx> getDtxxByBh(String dtxxBh) {
		return dtxxMapper.getDtxxByBh(dtxxBh);
	}

	/**
	 * 添加电梯信息
	 * @param dtxx
	 * @return
	 */
	@Override
	public Integer addDtxx(Dtxx dtxx) {
		return dtxxMapper.addDtxx(dtxx);
	}

	/**
	 * 修改电梯信息
	 * @param dtxx
	 * @return
	 */
	@Override
	public Integer updateDtxx(Dtxx dtxx) {
		return dtxxMapper.updateDtxx(dtxx);
	}

	/**
	 * 删除电梯信息
	 * @param dtxx
	 * @return
	 */
	@Override
	public Integer deleteDtxx(String dtxxId) {
		return dtxxMapper.deleteDtxx(dtxxId);
	}
}
